package io;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class PWDemo {
    public static void main(String[] args) throws IOException {
        PrintWriter pw =new PrintWriter("pw.txt");
        pw.println("惆怅长岑长错错错错错错错错错错错错错错错错");
        pw.println("凄凄切切群群群群群群群群群");
        System.out.println("ok");
        pw.close();


//        FileOutputStream fos =new FileOutputStream("pw.txt");
//        OutputStreamWriter osw =new OutputStreamWriter(fos, StandardCharsets.UTF_8);
//        BufferedWriter bw =new BufferedWriter(osw);
//        bw.write("ddddddd");
//        bw.write("aaaaaaa");
//        System.out.println("ok");
//        bw.close();
    }
}
